package com.sqx.modules.tbOrders.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sqx.common.utils.Result;
import com.sqx.modules.tbOrders.entity.SysComplaint;

public interface ComplaintService extends IService<SysComplaint> {

    Result findAllComplaint(Long userId, Integer illegalId, Integer complaintState, Integer page, Integer limit,String userName);

    Result insertComplaint(SysComplaint sysComplaint);

    Result findComplaint(Long userId, Long complaintId);

    Result appealIndent(Long userId, SysComplaint sysComplaint);


    IPage<SysComplaint> findAllAppeal(Integer page, Integer limit, SysComplaint complaint);

    IPage<SysComplaint> getUserComplaint(Long userId, Integer page, Integer limit,Integer complaintState,String userName);

    Result updateCustomerComplaint(Long complaintId, Integer complaintState);

    Result updateComplaintState(SysComplaint sysComplaint);
}
